﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common {
    public static class ArrayExtensions {
        public static void Foreach<T>(this T[] array,Action<T> action) where T:class {
            foreach (var item in array) {
                action(item);
            }
        }
    }
}
